package com.unknow.first.dapp.admin.account.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressRechargeMapper extends BaseMapper<AddressRecharge> {
    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(AddressRecharge record);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(AddressRecharge record);

    int updateBatch(List<AddressRecharge> list);

    int batchInsert(@Param("list") List<AddressRecharge> list);


    /**
     * 更新确认状态为失败
     *
     * @param id
     * @return
     */
    int updateConfirmFail(Long id);

    /**
     * 更新状态为完成（已入账）
     *
     * @param id
     * @return
     */
    int updateStatusDone(Long id);
}